﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace vnFingerPrint.GUI
{
    public partial class frmChooseNetwork : Form
    {
        // Khai bao cac thanh vien trong lop frmChooseNetwork
        private float Heso;  // He so hoc
        private int Kind;    // Loai mang
        
        // Dinh nghia ham dung
        public frmChooseNetwork()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmChooseNetwork_Load(object sender, EventArgs e)
        {
            this.txtHesohoc.Text = "0.00000001";
            this.lstNeuralNetwork.Items.Add("Single-Layer Perceptron Network");
            this.lstNeuralNetwork.Items.Add("Back Propagation Network");
            this.lstNeuralNetwork.SetSelected(0, true); 
        }
       
        private void btnDongy_Click(object sender, EventArgs e)
        {
            this.Heso = float.Parse(this.txtHesohoc.Text);
            this.Kind = this.lstNeuralNetwork.SelectedIndex;
            this.Close();  
        }

        // Thuoc tinh Hesohoc
        public float Hesohoc
        {
            get
            {
                return Heso;
            }
            set
            {
                Heso = value;
            }
        }

        // Thuoc tinh Loaimang
        public int Loaimang
        {
            get
            {
                return Kind;
            }
            set
            {
                Kind = value;
            }
        }
    }
}
